package fr.vahren.dotastrat.gui;

import com.trolltech.qt.gui.QColor;
import com.trolltech.qt.gui.QTextEdit;
import com.trolltech.qt.gui.QTextCursor.MoveOperation;

public class D2STextEdit extends QTextEdit {

	public D2STextEdit() {
		super();
		setFixedHeight(100);
		setReadOnly(true);
	}
	
	public void appendLine(String text, QColor color){
		moveCursor(MoveOperation.End);
		setTextColor(color);
		insertHtml(text);
	}

}
